﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MortgageMonitor.Report.DDL
{
    public class StocksReport
    {
        public string Symbol { get; set; }
        public decimal Quantity { get; set; }
        public decimal Ref { get; set; }
        public decimal Value { get { return Quantity * Ref * 1000; } }
        public int TillSettlement { get; set; }
        public decimal AllowRate { get; set; }
        public string Name { get; set; }
        public decimal LoanAllowValue { get { return Quantity * Ref * 1000 * AllowRate; } }


        public StocksReport() { }
        public StocksReport(string symbol, decimal quantity, decimal refprice, decimal values, string name)
        {
            Symbol = symbol;
            Ref = refprice;
            Quantity = quantity;
            Name = name;

        }
        public StocksReport(string symbol, decimal quantity, decimal refprice, decimal values, decimal allowrate, string name)
        {
            Symbol = symbol;
            Ref = refprice;
            Quantity = quantity;
            Name = name;
            AllowRate = allowrate;
        }
        public StocksReport(string symbol, decimal quantity, decimal refprice, decimal values, int tillsettlement, decimal allowrate, string name)
        {
            Symbol = symbol;
            Ref = refprice;
            Quantity = quantity;
            Name = name;
            AllowRate = allowrate;
            TillSettlement = tillsettlement;
        }

    }
}
